XUnit Terminology Cross-reference
This appendix provides a crossreference from the terminology used in this book to the terminology used by various specific members of the xUnit family. This list is not intended to be exhaustive but rather to illustrate the adaptations of the standard xUnit terminology to the idioms and culture of each language and community. If a term is missing, feel free to provide it via an e-mail. If your favorite member of the xUnit family is missing, just e-mail me the html (just the tr/td tags) row to include in this table.
Tool | Book Term | ||||||||||||
Language | XUnit Member: | Testcase Class | Test Suite Factory | Test Method | fixture setup | fixture teardown | SuiteFixture Setup | SuiteFixture TearDown | Expected Exception Test | ||||
Java 1.4 | JUnit 3.8.2 | subclass of TestCase | static suite() | testXxx() | setUp() | tearDown() | n/a | n/a | subclass of Expected ExceptionTest | ||||
Java 5 | JUnit 4.0+ | import org.junit.Test | static suite() | @Test | @Before | @After | @BeforeClass | @AfterClass | @Exception | ||||
.Net | CsUnit | [TestFixture] | [Suite] | [Test] | [SetUp] | [TearDown] | n/a | n/a | [ExpectedException()] | ||||
.Net | NUnit 2.0 | [TestFixture] | [Suite] | [Test] | [SetUp] | [TearDown] | n/a | n/a | [ExpectedException()] | ||||
.Net | NUnit 2.1+ | [TestFixture] | [Suite] | [Test] | [SetUp] | [TearDown] | [TestFixtureSetUp] | [TestFixtureTearDown] | [ExpectedException()] | ||||
.Net | MbUnit 2.0+ | [TestFixture] | [Suite] | [Test] | [SetUp] | [TearDown] | tbd | tbd | [ExpectedException()] | ||||
.Net | MSTest | [TestClass()] | tbd | [TestMethod()] | [TestInitialize()] | [TestCleanup()] | [ClassInitialize()] | [ClassCleanup()] | [ExpectedException()] | ||||
PHP | PHPUnit | subclass of TestCase | static suite() | testXxx() | setUp() | tearDown() | n/a | n/a | subclass of Expected ExceptionTest | ||||
Python | PyUnit | subclass of unittest.TestCase | tbd | testXxx | setUp | tearDown | n/a | n/a | assertRaises | ||||
Ruby | Test::Unit | subclass of Test::Unit::TestCase | Classname.suite() | testXxx() | setup() | teardown | n/a | n/a | assert_raise | ||||
Smalltalk | SUnit | superclass: TestCase | TestSuite named: | testXxx | setUp | tearDown | tbd | tbd | should:raise: | ||||
VB 6 | VbUnit | Implements IFixture | Implements ISuite | TestXxx() | IFixture_Setup() | IFixture_TearDown | IFixtureFrame_Create() | IFixtureFrame_Destroy | on error... | ||||
SAP ABAP | ABAP Unit | FOR TESTING | automatic | any | setup | teardown | class_setup | class_teardown | tbd |
Copyright © 2003-2008 Gerard Meszaros all rights reserved